C_START = 0
C_STOP = 1
C_DELETE = 2
C_CREATE = 3
C_UPGRADE = 4
C_EXECUTE = 5
C_CONFIG = 6
C_SIGN_IN = 7
C_REMOVE = 8
C_SIGN_OUT = 9

T_START = '启动'
T_STOP = '停止'
T_DELETE = '销毁'
T_CREATE = '创建'
T_UPGRADE = '升级'
T_EXECUTE = '执行'
T_CONFIG = '配置'
T_SIGN_IN = '登入'
T_REMOVE = '解除'
T_SIGN_OUT = '注销'

C_ENGINE_ROOM = 0
C_DEVICE = 1
C_SERVICE = 2
C_APP = 3
C_ALARM = 4
C_USER = 5
C_TASK = 6
C_VERSION = 7
C_DEVICE_GROUP = 8

T_ENGINE_ROOM = '机房'
T_DEVICE = '设备'
T_SERVICE = '服务'
T_APP = '应用'
T_ALARM = '报警'
T_USER = '用户'
T_TASK = '作业'
T_VERSION = '版本'
T_DEVICE_GROUP = '设备分组'

OPERATION_TYPE = (
    (C_START, T_START),
    (C_STOP, T_STOP),
    (C_DELETE, T_DELETE),
    (C_CREATE, T_CREATE),
    (C_UPGRADE, T_UPGRADE),
    (C_EXECUTE, T_EXECUTE),
    (C_CONFIG, T_CONFIG),
    (C_SIGN_IN, T_SIGN_IN),
    (C_REMOVE, T_REMOVE),
    (C_SIGN_OUT, T_SIGN_OUT)
)

OPERATION_SORT = (
    (C_ENGINE_ROOM, T_ENGINE_ROOM),
    (C_DEVICE, T_DEVICE),
    (C_SERVICE, T_SERVICE),
    (C_APP, T_APP),
    (C_ALARM, T_ALARM),
    (C_USER, T_USER),
    (C_TASK, T_TASK),
    (C_VERSION, T_VERSION),
    (C_DEVICE_GROUP, T_DEVICE_GROUP),
    (C_SIGN_OUT, T_SIGN_OUT)
)
